package com.provider.service3.service;


import com.api.demo.entities.Dept;
import com.provider.service3.dao.DeptDAO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class DeptServiceImpl implements DeptService {

    @Autowired
    private DeptDAO deptDAO;
    @Override
    public boolean add(Dept dept) {
        return deptDAO.add(dept);
    }

    @Override
    public Dept get(Long id) {
        return deptDAO.get(id);
    }

    @Override
    public List<Dept> list() {
        return deptDAO.list();
    }
}
